package net.maku.express.biza.controller.hourse;


import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.AllArgsConstructor;
import net.maku.express.biza.service.hourse.HourseService;
import net.maku.framework.common.utils.Result;
import net.maku.system.controller.vo.HourseTypeResponseVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * @Author wenyignying'
 * @Description:
 * @Date
 */
@RequestMapping("hourse")
@RestController
@Tag(name="货仓接口")
@AllArgsConstructor
public class HourseController {

    @Autowired
    private HourseService hourseService;

    @GetMapping("/select")
    @Operation(summary = "查询")
    @PreAuthorize("hasAuthority('express:hourse:select')")
    public Result<List<HourseTypeResponseVO>> select(){
        return hourseService.getData();
    }

}
